package cn.java75.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class PTest {
    public static void main(String[] args) {
        //代码来组装对象
        Printer p=new Printer();
        p.setBrand("惠普炫彩系列");
        p.setInk(new ColorFulInk());
        TextPaper a4=new TextPaper();
        a4.setLines(12);
        a4.setLineWords(10);
        p.setPaper(a4);

        p.print("hello world");
    }
}
